import request from '@/router/axios';

/**
 * 获取用户
 * */
export const getUserList = (params) => {
    return request({
        url: '/api/user-api/mx-user/page',
        method: 'get',
        params: params
    })
}
/**
 * 获取 角色
 * */
export const getRoleList = (params) => {
    return request({
        url: '/api/user-api/mx-role/page',
        method: 'get',
        params: {...params, type: 3}
    })
}
/**
 * 获取 团队角色
 * */
export const getTeamRoleList = (params) => {
    return request({
        url: '/api/user-api/mx-role/page',
        method: 'get',
        params: {...params, type: 2}
    })
}
/**
 * 获取 组织
 * */
export const getDeptList = (params) => {
    return request({
        url: '/api/workflow-api/design/model/deptList',
        method: 'get',
        params
    })
}
/**
 * 获取 用户组
 * */
export const getUserGroupList = (params) => {
    return request({
        url: '/api/user-api/mx-user-group/page',
        method: 'get',
        params
    })
}
/**
 * 获取 自定义
 * */
export const getCustomList = (params) => {
    return request({
        url: '/api/workflow-api/design/condition/list',
        method: 'get',
        params
    })
}
/**
 * 获取 表单list
 * */
export const getFormList = (params) => {
    return request({
        url: '/api/workflow-api/design/form/list',
        method: 'get',
        params
    })
}
/**
 * 获取 表单属性
 * */
export const getFormAttr = (params) => {
    return request({
        url: '/api/workflow-api/design/form/detail',
        method: 'get',
        params
    })
}
/**
 * 获取 所有流程按钮
 * */
export const getWorkflowButton = (params) => {
    return request({
        url: '/api/workflow-api/design/button/list',
        method: 'get',
        params: {
            current: 1,
            size: 1000
        }
    })
}
/**
 * 获取 所有流程按钮
 * */
export const getSignTemplateList = (params) => {
    return request({
        url: '/api/sign-api/mx-sign-template/list',
        method: 'get',
        params: {
            current: 1,
            size: 1000
        }
    })
}
/**
 * @param params 查看签名模板详情 name
 * */
export const getSignTempInfoByName = (params) => {
    return request({
        url: '/api/sign-api/mx-sign-template/getInfoByName',
        method: 'get',
        params
    })
}
